<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AlterReportEverydayTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('everyday_report', function (Blueprint $table) {
            $table->unsignedInteger('meal_order_num')->default(0)->comment('套餐订单数')->after('coupon_amount');
            $table->unsignedInteger('meal_recharge_amount')->default(0)->comment('套餐金额')->after('meal_order_num');
            $table->unsignedInteger('direct_order_num')->default(0)->comment('直充订单数')->after('meal_recharge_amount');
            $table->unsignedInteger('direct_recharge_amount')->default(0)->comment('直充金额')->after('direct_order_num');
            $table->unsignedInteger('today_recharge_amount')->default(0)->comment('当日到账金额')->after('direct_recharge_amount');
            $table->unsignedInteger('history_recharge_amount')->default(0)->comment('历史到账金额')->after('today_recharge_amount');

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
